www.gusucode.com > 云枫工作室企业网站源码 1 > 云枫工作室企业网站源码 1.0/云枫工作室企业网站源码(asp无限制版)1.0/web/admin/Manage_modjob.asp

    <!--#include file="conn.asp"-->
<!--#include file="check.asp" -->
<%
set rspaixu=server.createobject("adodb.recordset")
paixusql="select * from Tsm_job order by paixu desc"
rspaixu.open paixusql,conn,1,1
if not rspaixu.eof then
thelastpaixu=rspaixu("paixu")+1
else
thelastpaixu=1
end if
rspaixu.close
set rspaixu=nothing


select case request("action")
	case "add"
	call add()
	case "addsave"
	call addjob()
	case "Modify"
	call Modify()
	case "Modifysave"
	call Modifysave()
end select
%>
<%
sub add()
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title></title>
<link href="css.css" rel="stylesheet" type="text/css">
</head>
<body>
<!--#include file="top.htm"-->
<br>
<table width="90%" height="25"  border="0" align="center" cellpadding="0" cellspacing="0">
  <form name="myform" method="post" action="jobsave.asp"><tr>
    <td height="25" align="center" valign="middle" background="img/menu_manage.gif"><font color="#FFFFFF"><b>发 布 招 聘 信 息</b></font></td>
  </tr>
  <tr>
    <td>
<table width="100%"  border="0" align="center" cellpadding="2" cellspacing="1" bgcolor="#CCCCCC">
  <tr align="center" valign="middle" bgcolor="#FFFFFF">
    <td height="25" colspan="2">&nbsp;</td>
    </tr>
  <tr>
    <td width="15%" height="25" align="center" valign="middle" bgcolor="#FFFFFF">职位名称:</td>
    <td width="85%" bgcolor="#F6F6F6"><input name="title" type="text" id="title" size="50" maxlength="50">
      <font color="#FF0000"> *</font>      </td>
  </tr>
  <tr  style="display:none">
    <td width="15%" height="25" align="center" valign="middle" bgcolor="#FFFFFF">职位名称(英):</td>
    <td width="85%" bgcolor="#F6F6F6"><input name="titlee" type="text" id="titlee" size="50" maxlength="50">
      <font color="#FF0000"> *</font>      </td>
  </tr>
  <tr  style="display:none">
    <td width="15%" height="25" align="center" valign="middle" bgcolor="#FFFFFF">工作地点<%if en_switch=0 then%><%else%>(中)<%end if%>:</td>
    <td width="85%" bgcolor="#F6F6F6"><input name="gzdd" type="text" id="gzdd" size="50" maxlength="50">
      <font color="#FF0000"> *</font>      </td>
  </tr>
  <tr  style="display:none">
    <td width="15%" height="25" align="center" valign="middle" bgcolor="#FFFFFF">工作地点(英):</td>
    <td width="85%" bgcolor="#F6F6F6"><input name="gzdde" type="text" id="gzdde" size="50" maxlength="50">
      <font color="#FF0000"> *</font>      </td>
  </tr>
  

  <tr style="display:none">
    <td width="15%" height="25" align="center" valign="middle" bgcolor="#FFFFFF">工资待遇:</td>
    <td width="85%" bgcolor="#F6F6F6"><input name="gzdy" type="text" id="gzdy" size="50" maxlength="50">
      <font color="#FF0000"> *</font>      </td>
  </tr>
<!--  <tr>
    <td width="15%" height="25" align="center" valign="middle" bgcolor="#FFFFFF">排序:</td>
    <td width="85%" bgcolor="#F6F6F6">--><input name="paixu" type="hidden" id="paixu" size="20" maxlength="20" value="1"><!--
      <font color="#FF0000"> *</font></td>
  </tr>-->
  <tr  style="display:none">
    <td height="25" align="center" valign="middle" bgcolor="#F6F6F6">发布时间:</td>
    <td bgcolor="#FFFFFF"><input name="Time" type="text" id="Time" value="<%=now()%>" size="20" maxlength="50">
      需求人数:
      <input name="rensu" type="text" id="rensu" value="1" size="20" maxlength="50">
      有效期限:
      <input name="Deadline" type="text" id="Deadline" value="0" size="20" maxlength="50">
      </td>
  </tr>
  <tr>
    <td height="350" align="center" valign="middle" bgcolor="#F6F6F6">具体要求:
</td>
    <td height="355" valign="top" bgcolor="#FFFFFF">
<textarea name="content" style="display:none"><%=Server.HTMLEncode(html)%></textarea>
      <iframe ID="eWebEditor1" src="editor/ewebeditor.asp?id=content&style=s_office" frameborder="0" scrolling="no" width="600" HEIGHT="355"></iframe>
</td>
  </tr>
</table>
<table width="100%"  border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
  <tr>
    <td height="35" align="center">
  <input type="submit" name="Submit" value="发布信息">
&nbsp;
  <input type="reset" name="Submit" value=" 清 除 ">
&nbsp;
  <input type="button" name="Submit2" value=" 返 回 " onClick="history.go(-1)">
   </td>
  </tr>
</table>
</td>
  </tr></form>
</table>

</body>
</html>
<%
end sub
%>
<%
sub addjob()

set rs = server.CreateObject("adodb.recordset")
rs.open "select * from tsm_job",conn,1,3
rs.addnew
	rs("title") = request("title")
rs.update
rs.close
set rs = nothing

'call ShowAlert("发布成功!","Manage_adminjob.asp")

end sub
%>
<%
sub Modify()
%>
<%
id=request("id")
set RsEdit=server.createobject("adodb.recordset")
sqlEdit = "select * from Tsm_job where id="& id
RsEdit.open sqlEdit,conn,1,1
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title></title>
<link href="css.css" rel="stylesheet" type="text/css">
</head>
<body>
<!--#include file="top.htm"--><br>
<table width="90%"  border="0" align="center" cellpadding="2" cellspacing="1" bgcolor="#CCCCCC">
 <form name="myform" method="post" action="?action=Modifysave">
 <tr align="center" valign="middle">
    <td height="25" colspan="2" background="img/menu_manage.gif"><font color="#FFFFFF"><b>修 改 招 聘 信 息</b></font></td>
  </tr>
  <tr bgcolor="#FFFFFF">
    <td height="25" colspan="2">&nbsp;</td>
  </tr>
  <tr>
    <td width="15%" height="25" align="center" bgcolor="#FFFFFF">职位名称:</td>
    <td width="85%" bgcolor="#FFFFFF"><input name="title" type="text" id="title" value="<%= RsEdit("title") %>" size="50" maxlength="50">
      <font color="#FF0000"> *  </font></td>
  </tr>
  
  
  <tr style="display:none" >
    <td width="15%" height="25" align="center" valign="middle" bgcolor="#FFFFFF">排序:</td>
    <td width="85%" bgcolor="#F6F6F6"><input name="paixu" type="text" id="paixu" size="20" maxlength="20" value="<%= RsEdit("paixu") %>">
      <font color="#FF0000"> *</font></td>
  </tr>
  <tr style="display:none">
    <td height="25" align="center" valign="middle" bgcolor="#F6F6F6">发布时间:</td>
    <td bgcolor="#FFFFFF"><input name="Time" type="text" id="Time" value="<%=now()%>" size="20" maxlength="50">
      需求人数:
      <input name="rensu" type="text" id="rensu" value="<%= RsEdit("rensu") %>" size="20" maxlength="50">
      有效期限:
      <input name="Deadline" type="text" id="Deadline" value="<%= RsEdit("Deadline") %>" size="20" maxlength="50">
      </td>
  </tr>
  <tr>
    <td height="350" align="center" valign="middle" bgcolor="#F6F6F6">具体要求:</td>
    <td height="355" valign="top" bgcolor="#FFFFFF">
<textarea name="content" style="display:none"><%=RsEdit("content")%></textarea>
<iframe ID="eWebEditor1" src="editor/ewebeditor.asp?id=content&style=s_office" frameborder="0" scrolling="no" width="600" HEIGHT="355"></iframe>
</td>
  </tr>
 
  <tr bgcolor="#FFFFFF">
    <td colspan="2" align="center" valign="middle"><table width="100%" height="35"  border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF">
      <tr>
        <td height="35" align="center" valign="middle">
          <input name="id" type="hidden" id="id" value="<%=rsEdit("id")%>">
          <input type="submit" name="Submit" value="修改信息">
&nbsp;
      <input type="reset" name="Submit" value=" 清 除 ">
&nbsp;
  <input type="button" name="Submit2" value=" 返 回 " onClick="history.go(-1)">
      </td>
      </tr>
    </table></td>
    </tr></form>
</table>
</body>
</html>
<%
end sub
%>
<%
sub Modifysave()

if trim(request("title"))="" or isEmpty(request("title"))=true then
call ShowAlert("职位名称不可为空,请输入职位名称!","")


ElseIf trim(request("content"))="" or isEmpty(request("content"))=true Then
call ShowAlert("具体要求不可为空,请输入具体要求!","")

else

set rs=server.createobject("adodb.recordset")
sql1="select * from Tsm_job where id="& request("id")
rs.open sql1,conn,1,3
rs("title") = request("title")
rs("titlee") = request("titlee")
rs("paixu") = request("paixu")
rs("Time1") = request("Time")
rs("content") = request("content")
rs("contente") = request("contente")
rs("gzdd") = request("gzdd")
rs("gzdde") = request("gzdde")
rs("gzdy") = request("gzdy")
rs("rensu") = request("rensu")
rs("Deadline") = request("Deadline")
rs("departcn") = request("departcn")
rs("departen") = request("departen")
rs("xielicn") = request("xielicn")
rs("xielien") = request("xielien")
rs("waiyicn") = request("waiyicn")
rs("waiyien") = request("waiyien")
rs.Update
rs.Close 
set rs=nothing
conn.close
set conn=nothing

call ShowAlert("修改成功!","Manage_adminjob.asp")
end if
end sub
%>